from datetime import datetime
from time import mktime

import sqlite
import os
import sys

from traclib import *

if __name__ == "__main__":
	dbname = "trac.db"
	milestone = "1.2.0 - NASA Science Routine Feature Enhancements"
	
	con = openDB(dbname)
	cur = con.cursor()

	tickets = getTicketHours(cur, milestone)
	tickets = cleanTickets(tickets)
	printTotals(tickets)
#	print tickets
